package com.mewpipe.entity;



import java.text.SimpleDateFormat;
import java.util.Date;

public class UserSession {

	private long id;
	private String pseudo;
	private int type_acc;
	private String date_connection;

	
	public int getType_acc() {
		return type_acc;
	}


	private void setType_acc(int type_acc) {
		this.type_acc = type_acc;
	}


	private String getDate_connection() {
		return date_connection;
	}


	private void setDate_connection(String string) {
		this.date_connection= string;
	}


	public long getId() {
		return id;
	}


	private void setId(long id) {
		this.id = id;
	}


	

	
	public String getPseudo() {
		return pseudo;
	}


	public void setPseudo(String pseudo) {
		this.pseudo = pseudo;
	}


	public UserSession(Long _id,String _mail,int _type_acc) {
		this.setId(_id);
		this.setPseudo(_mail);
		this.setType_acc(_type_acc);
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss z");
		this.setDate_connection(formatter.format(new Date()));
		
	
	}

}
